package com.soxing.braindata.domain.enumeration;


/**
 * 文件上传类型枚举
 */
public enum FileUploadTypeEnum {

    SPECIFICATION("实验规范", "specification"),
    TAG("标签含义", "tag"),
    EXPERIMENT("实验数据", "experiment"),
    ;

    /**
     * 名称
     */
    private String name;

    /**
     * type
     */
    private String type;

    FileUploadTypeEnum(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public static FileUploadTypeEnum getEnum(String type) {
        for (FileUploadTypeEnum ase : FileUploadTypeEnum.values()) {
            if (ase.type == type) {
                return ase;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
